package com.hntxk.cqzd.flup.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hntxk.core.constant.CoreConstants;
import com.hntxk.core.framework.model.BaseModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import javax.persistence.Id;
import java.util.Date;

@Setter
@Getter
public class FlupAndDiacModel extends BaseModel {

    @Id
    private Long flupId;
    //诊断信息id
    private Long diacrisisId;

    //随访时间
    @DateTimeFormat( pattern = CoreConstants.DATETIME_FORMAT)
    @JsonFormat( pattern = CoreConstants.DATETIME_FORMAT)
    private Date flupTime;

    //妊娠结局id
    private Long gestResultId;

    //妊娠结局
    private String gestResultName;

    private Character nbcSex;


    //患者出生日期
    @DateTimeFormat( pattern = CoreConstants.DATE_FORMAT)
    @JsonFormat( pattern = CoreConstants.DATE_FORMAT)
    private Date nbcBirthday;

    private Double nbcBw;

    private Integer gestWeeks;

    private Integer gestDays;

    private String birthPlace;

    private String birthInspection;

    private String flupCure;

    private Integer inducedGestWeeks;

    private Integer inducedGestDays;

    private String inducedSpecial;

    private Long inducedCauseId;

    private String inducedCauseName;

    private Character isSpecKeep;

    private String specKeepId;

    private String specKeepName;

    private Character isPme;

    private String flupRemark;

    private Character isValid;

    //创建人id
    private Long createUserId;
    //创建人姓名
    private String createUserName;

    //创建时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //修改人id
    private Long updateUserId;

    //修改人姓名
    private String updateUserName;

    //修改时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

//    private FlupInfo flupInfo;

    //门诊号
    private String outpatientNo;
    //就诊时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;
    //患者姓名
    private String patientName;
    //身份证号
    private String patientCardId;
    //患者出生日期
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date patientBirthday;

    //分娩日期
    @DateTimeFormat(pattern = CoreConstants.DATE_FORMAT)
    @JsonFormat( pattern = CoreConstants.DATE_FORMAT)
    private Date childbirthDate;

    //末次月经时间
    @DateTimeFormat(pattern = CoreConstants.DATE_FORMAT)
    @JsonFormat( pattern = CoreConstants.DATE_FORMAT)
    private Date lastMenses;

    //出生身长
    private Double nbcLength;

    //头围
    private Double nbcHeadCircumference;

    //1分钟阿氏评分
    private  Integer   oneApgar;

    //5分钟阿氏评分
    private Integer fiveApgar;
    /**查询条件*/
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date startDate;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date endDate;

    private String cardNo;

    private MultipartFile[] files;
}
